package com.example.fresh_fruit.mapper;

import com.example.fresh_fruit.entity.Commodity;
import com.example.fresh_fruit.entity.ShoppingCat;
import org.springframework.stereotype.Repository;

/**
 * @author :飞天の鱼
 * @date : 2022/8/24 14:33
 */
@Repository
public interface ShoppingCatMapper {
    /**
     * @param id
     * 查询购物车，如果有则
     * @return
     */
    ShoppingCat selectShoppingCom(Integer id);

    /**
     * @param commodity
     * 插入购物车
     * @return
     */
    int insertShoppingCom(Commodity commodity);

    int deleteShoppingCom(Integer id);
}
